// import { injectReducer } from 'REDUCER'
// import createContainer from 'UTIL/createContainer'
// const connectComponent = createContainer(
//   ({ userData, currentContent }) => ({ userData, currentContent }),
//   require('ACTION/article').default               // mapActionCreators
// )

export default {
  path: 'Help',

  /* 布局基页 */
  getComponent(nextState, callback) {
    require.ensure([], (require) => {
      // 立即注入 Reducer, 
      // injectReducer('currentContent', require('REDUCER/article').default);
      callback(null, require('VIEW/Help').default)
    }, 'Help')
  },

  indexRoute: { 
    // getComponent(nextState, cb) {
    //   require.ensure([], (require) => {
    //     cb(null, require('COMPONENT/Article/index').default)
    //   }, 'topicList')
    // }
  },

  childRoutes: [
    // { 
    //   path: 'detail/:aId',
    //   getComponent(nextState, cb) {
    //     require.ensure([], (require) => {
    //       cb(null, require('COMPONENT/Article/ArticleDetail').default)
    //     }, 'articleDetail')
    //   }
    // }
  ]
}

/*
  当前路由树如下
  |
  ├ /article
  ├ /article/detail/:aId
  ├ /article/modify/:aId
  ├ /article/add
  |
*/
